package com.pacifico.telebusca.web.controladores;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping("/menu")
public class ControladorMenu {

	@Autowired
	private HttpServletRequest httpServletRequest;

	@RequestMapping(value="/menu",method = RequestMethod.GET)
	public String inicio(HttpServletRequest httpServletRequest,
		 ModelMap model,@RequestParam String id) {
		System.out.println("id " + id);
		
		model.addAttribute("message", "Spring 3 MVC Hello World");
		return "importaraudios";

	}
}
